package com.example.online.music.model.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.util.Date;

@Data
@TableName("download_record")
public class DownloadRecord {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer userId;
    private Integer songId;
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    public DownloadRecord() {
    }

    public DownloadRecord(Integer userId, Integer songId, Date createTime) {
        this.userId = userId;
        this.songId = songId;
        this.createTime = createTime;
    }
}